/**
 * 
 */
package com.xpalive.web.common;

import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.xpalive.finals.Finals;

/**
 * @author xiongping
 * @IDE eclipse 4.3
 * @time 2015年5月21日 上午9:49:15
 */
public class BaseController<T extends BaseDomain> {
  @Autowired
  protected BaseService<T> baseService;
  
  @RequestMapping(value="map.action")
  @ResponseBody
  protected Map<String,Object> map(T t){
    return baseService.map(t);
  }
  @RequestMapping(value="save.action")
  @ResponseBody
  protected Map<String,Object> save(T t){
    return baseService.save(t);
  }
  @RequestMapping(value="del.action")
  @ResponseBody
  protected Map<String,Object> del(T t){
	  
    return baseService.del(t);
  }
}
